package route

import (
	"api-service/controllers"

	"github.com/gin-gonic/gin"
)

func SetRouter(router *gin.Engine) {
	calGroup := router.Group("/cal")
	{
		calGroup.GET("/ping", controllers.Ping)
		calGroup.POST("/insertFile", controllers.HanlderInsertT)
		calGroup.GET("/findFile", controllers.HandlerFind)
	}

	fileGroup := router.Group("/file")
	{
		fileGroup.POST("/upload", controllers.HanlderSavePic)
	}
}
